@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'YMOONT_VBAK CDS Entity'
define root view entity YMOON_I_VBAK
  as select from ymoont_vbak
  composition [0..*] of YMOON_I_VBAP as _Item
  composition [0..*] of YMOON_I_VBPA as _Partner
  composition [0..*] of YMOON_I_PRCD as _Payment
{
  key orderuuid                 as Orderuuid,
      senderbusinesssystemname  as Senderbusinesssystemname,
      purchaseorderbycustomer   as Purchaseorderbycustomer,
      salesordertype            as Salesordertype,
      salesorganization         as Salesorganization,
      distributionchannel       as Distributionchannel,
      soldtoparty               as Soldtoparty,
      requesteddeliverydate     as Requesteddeliverydate,
      customerpurchaseorderdate as Customerpurchaseorderdate,
      salesorderdate            as Salesorderdate,
      conditiontype             as Conditiontype,
      conditionratevalue        as Conditionratevalue,
      conditioncurrency         as Conditioncurrency,
      ifstatus                  as Ifstatus,
      zsalesorder               as Zsalesorder,
      ifmsg                     as Ifmsg,
      _Item, // Make association public
      _Partner,
      _Payment
}
